package Chapter12.demo03;

public class runner {
    public static void main(String args[]) {
        Join a = new Join();
        Thread driver = new Thread(a);
        Thread worker = new Thread(a);
        Thread administrator = new Thread(a);
        driver.setName("货车司机");
        worker.setName("装运工");
        administrator.setName("仓库管理员");
        a.setThread(driver,worker,administrator);
        driver.start();
    }

}
